home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
dbase
/
techs.zip
/
TECH15.ZIP
/
READ.ME
< prev
Wrap
Text File
|
1980-01-01
|
1KB
|
36 lines
PROGRAM NAME: Fdate.PRG
DESCRIPTION: Formats date variables to character strings.
ISSUE: March, 1985
PAGE: D3-3
SOFTWARE VERSIONS: dBASE III, versions 1.0, 1.1
FUNCTION: This program will take date variables and convert them
to character variables with one of the following formats:
1. Mon DD, YYYY ( Dec 1, 1985 )
2. Mon YYYY ( Dec 1985 )
3. Mon DD ( Dec 1 )
4. Month DD, YYYY ( December 1, 1985 )
5. DD-Mon-YYYY ( 1-Dec-1985 )
It is set up as a PROCEDURE which takes three variables:
inv_date, which is the date variable to format; a number for the
format code; and finv_date, which is the character variable to
receive the formatted date. These correspond to date, code, and
datestrg in the PARAMETERS statement of Fdate.PRG.
FILES NEEDED: Fdate.PRG
SETUP INSTRUCTIONS: Call Fdate with the following syntax:
STORE " " TO finv_date
DO Fdate with inv_date, 5, finv_date
In this example, 5 is the numeric code which determines the
format of the output, so the resulting character string will look
like 1-Dec-1985.